package com.sugon.modules.sys.model.vo;

import com.sugon.modules.sys.consts.NoticeType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 通知Payload
 *
 * @author YuXD
 * @since 2021-11-17
 */
@NoArgsConstructor
@Data
public class NoticePayload implements Serializable {

    private String noticeType;

    private String businessId;
    /**
     * 通知标题
     */
    private String title;

    /**
     * 通知简介
     */
    private String brief;

    private List<String> cid;

    public NoticePayload(NoticeType noticeType, String businessId, String title, String brief) {
        this.noticeType = noticeType.name();
        this.businessId = businessId;
        this.title = title;
        this.brief = brief;
        this.cid = new ArrayList<>();
    }
}
